﻿using System;

namespace TestWSTMS
{
	//Doi tuong Khach Hang
    public class InsertCustomerModel {
       public string TEN_CONG_TY {get;set;}
	   public string DIA_CHI_XUAT_HOA_DON {get;set;}
	   public string QUAN {get;set;}
	   public string MA_TINH {get;set;}
	   public string MA_SO_THUE {get;set;} // dung de kiem tra khach hang da ton tai
	   public string DT_CTY {get;set;}
	   public string FAX_CTY {get;set;}
       public string MA_LOAI_CONG_TY {get;set;}
       public string MA_DOI_TUONG { get; set; }
	   public string MA_LINH_VUC_HOAT_DONG{get;set;}
	   public DateTime NGAY_THANH_LAP_CONG_TY {get;set;}
	   public string MA_LOAI_KHACH_HANG {get;set;}									
	   public string GHI_CHU{get;set;}
       public string DIA_CHI_GPKD { get; set;}
    }

	//Doi tuong thong tin CA
    public class InserCAModel{
        public string MA_SO_THUE {
            get;
            set;
        }
        public bool GIOI_TINH_NLH {
            get;
            set;
        }
        public DateTime? NGAY_GUI_KH {
            get;
            set;
        }
        public string MA_HINH_THUC_THANH_TOAN {
            get;
            set;
        }
        public string EMAIL {
            get;
            set;
        }
        public string CMND {
            get;
            set;
        }
        public string MA_CHUC_VU {
            get;
            set;
        }
        public string NGUOI_KY {
            get;
            set;
        }
        public string NGAN_HANG {
            get;
            set;
        }
        public string TAI_KHOAN {
            get;
            set;
        }
        public string KM_KHAC {
            get;
            set;
        }
        public double KM_CUOC {
            get;
            set;
        }
        public int VAT {
            get;
            set;
        }
        public string DIA_CHI_LIEN_LAC {
            get;
            set;
        }
        public DateTime DA_XUAT_HOA_DON {
            get;
            set;
        }
        public int DO_DAI_KHOA {
            get;
            set;
        }
        public DateTime NGAY_NHAP {
            get;
            set;
        }
        public string MA_DAI_LY {
            get;
            set;
        }
        public string UserName_NHAN_VIEN {
            get;
            set;
        }
        public string SO_HD {
            get;
            set;
        }
        public DateTime NGAY_KY_HD {
            get;
            set;
        }
        public string MA_NHAN_DIEN_GOI_CUOC {
            get;
            set;
        }
        public int GOI_NAM {
            get;
            set;
        }
        public string NGUOI_LIEN_HE {
            get;
            set;
        }
        public string DT_NGUOI_LH {
            get;
            set;
        }
        public string EMAIL_NGUOI_LH {
            get;
            set;
        }
        public string GHI_CHU {
            get;
            set;
        }
        public int? THANG_KHUYEN_MAI {
            get;
            set;
        } /*Nếu Null tháng khuyến mãi sẽ lấy từ SQL*/
        public bool BAO_VE_EMAIL {
            get;
            set;
        }
        public bool KY_SO {
            get;
            set;
        }
        public bool XAC_THUC {
            get;
            set;
        }
        /*-------------------GEN-------------------*/
        public string ACCOUNT {
            get;
            set;
        }
        public string USERNAME {
            get;
            set;
        }
        public DateTime NGAY_NGHIEM_THU {
            get;
            set;
        }
        public string SERIAL_NUMBER {
            get;
            set;
        }
        public string SUBJECT_DN {
            get;
            set;
        }
        public DateTime NGAY_KICH_HOAT {
            get;
            set;
        }
        public DateTime NGAY_HET_HAN {
            get;
            set;
        }
        public string GHI_CHU_GEN {
            get;
            set;
        }

        /*------------Khong can nhap------------*/
        public Guid ID_CA {
            get;
            set;
        }
        public double DOANH_THU {
            get;
            set;
        }
        public double GIA_THUE_BAO {
            get;
            set;
        }
        public Guid? ID_HINH_THUC_THANH_TOAN {
            get;
            set;
        }
        public Guid? ID_CHUC_VU {
            get;
            set;
        }
        public Guid? ID_DAI_LY {
            get;
            set;
        }
        public Guid? ID_NHAN_VIEN {
            get;
            set;
        }
        public Guid ID_GOI_CUOC {
            get;
            set;
        }
        public Guid ID_KHACH_HANG {
            get;
            set;
        }
    }

	//Doi tuong thong tin CA gia han
    public class DV_CA_InsertCertInfoModel {
        public int? SO_GIAY_CN {get;set;}
        public string ACCOUNT {get;set;}
        public string USERNAME {get;set;}
        public string SO_HD { get; set; }
        public DateTime NGAY_NGHIEM_THU {get;  set;}
        public string SERIAL_NUMBER {get;set;}
        public string SUBJECT_DN {get;set;}
        public string MA_NHAN_DIEN_GOI_CUOC {get;set;}
        public int GOI_NAM {get;set;}
        public int DO_DAI_KHOA {get;set;}
        public double KM_CUOC {get;set;}
        public DateTime NGAY_KICH_HOAT {get;set;}
        public DateTime NGAY_HET_HAN {get;set;}
        public DateTime? NGAY_GIAO_KTTC {get;set;}
        public DateTime? NGAY_GIAO_DVKH {get;set;}
        public bool BAO_VE_EMAIL {get;set;}
        public bool KY_SO {get;set;}
        public bool XAC_THUC {get;set;}
        public string MA_DAI_LY {get;set;}  //nullable
        public string USERNAME_NGUOI_THUC_HIEN {get;set;}
        public int VAT {get;set;}
        public DateTime? NGAY_NHAN_HS {get;set;}
        public string GHI_CHU {get;set;}
        public int? THANG_KHUYEN_MAI {get;set;}
    } 

	//Ket qua tra ve
    public class MessageExten {
        public int Result {
            get;
            set;
        }
        public string Message {
            get;
            set;
        }
    }
}
